﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XDeal.BL.Interfaces;
using XDeal.DAL.Implements;
using XDeal.DAL.Entities;

namespace XDeal.BL.Implements
{
    public class ApplyAreaBL: IApplyArea
    {
        ApplyAreaDAO applyAreaDAO = new ApplyAreaDAO();
        public ApplyAreaBL() { }

        #region GET (Basic)
        /// <summary>
        /// Get All Deal
        /// </summary>
        /// <returns>List of Deals</returns>
        public List<ApplyArea> GetAll()
        {
            return applyAreaDAO.GetAll();
        }

        /// <summary>
        /// Get Deal by ID
        /// </summary>
        /// <param name="ID">Deal ID</param>
        /// <returns>One Deal</returns>
        public ApplyArea GetByID(int ID)
        {
            return applyAreaDAO.GetByID(ID);
        }
        #endregion

        #region GET ADVANCE
        #endregion

        #region Insert, Update, Delete
        /// <summary>
        /// Insert ApplyArea
        /// </summary>
        /// <param name="ob">ApplyArea Object</param>
        /// <returns>True: Successful | False: Fail</returns>
        public bool Insert(ApplyArea bo)
        {
            return applyAreaDAO.Insert(bo);
        }

        /// <summary>
        /// Update ApplyArea by Object
        /// </summary>
        /// <param name="ob">ApplyArea Object</param>
        /// <returns>True: Successful | False: Fail</returns>
        public bool Update(ApplyArea bo)
        {
            return applyAreaDAO.Update(bo);
        }

        /// <summary>
        /// Delete ApplyArea by Object
        /// </summary>
        /// <param name="ob">ApplyArea Object</param>
        /// <returns>True: Successful | False: Fail</returns>
        public bool Delete(ApplyArea bo)
        {
            return applyAreaDAO.Delete(bo);
        }

        /// <summary>
        /// Delete By ID
        /// </summary>
        /// <param name="ID">ApplyArea ID</param>
        /// <returns>True: Successful | False: Fail</returns>
        public bool Delete(int ID)
        {
            return applyAreaDAO.Delete(ID);
        }
        #endregion
    }
}
